<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mood-hvacs-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php /*
	<div class="row">
		<?php echo $form->labelEx($model,'moodId'); ?>
		<?php echo $form->textField($model,'moodId'); ?>
		<?php echo $form->error($model,'moodId'); ?>
	</div>
	*/ ?>
	
	<?php if ($model->scenario == 'insert'): ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'hvacId'); ?>
		<?php echo $form->dropDownList(
			$model,
			'hvacId',
			CHtml::listData($model->mood->getUnassignHvacs(), '_id', 'name')
		); ?>
		<?php echo $form->error($model,'hvacId'); ?>
	</div>
	
	<?php endif; ?>

	<div class="row">
		<?php echo $form->labelEx($model,'value'); ?>
		<?php echo $form->textField($model,'value'); ?>
		<?php echo $form->error($model,'value'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->